package Pattern.StatePattern.Program.programtwo;

public class Context {
    public final State Primary = new Primary();
    public final State Second = new Secondary();
    public final State Professional = new Professional();
    public final State Final= new Final();
    private State state = Primary;

    public Context() {
    }

    public Context(State state) {
        this.state = state;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }
    public void change(){
        state.change(state);
    }
}
